/**
 * Created by vincent on 2017/9/11.
 */
moduleResource.factory("LearningMapTemplateResource", function (CambioResource, $$CambioConfig) {
    const resource = $$CambioConfig.SZ_MANAGEMENT_SYSTEM_RESOURCE_URL + "/learningMap/template";

    return CambioResource(resource, {}, {
        save: {
            url: resource + "/save",
            method: 'POST'
        },
        update: {
            url: resource + "/update",
            method: 'PUT'
        },
        publish: {
            url: resource + "/publish",
            method: 'POST'
        },
        unPublish: {
            url: resource + "/unPublish",
            method: 'POST'
        },
        query: {
            url: resource + "/query/:publishStatus" + $$CambioConfig.QUERY_URI,
            method: 'POST'
        },
        queryByOrganizationClient: {
            url: resource + "/queryByOrganizationClient/:publishStatus/:organizationClientId" + $$CambioConfig.QUERY_URI,
            method: 'POST'
        },
        publishForOrganization: {
            url: resource + "/publishForOrganization/:learningMapId",
            method: 'POST'
        }
    });
});